package com.bwie.ES;

import com.bwie.service.impl.TgValueServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;

@Configuration
public class initializeES {

    @Autowired
    ElasticsearchRestTemplate esTemplate;

    @Autowired
    TgValueServiceImpl tgValueService;

    /**
     * es初始化
     */
    public void createES(){
        esTemplate.indexOps("")
    }

}
